package com.vy.stl.service;

import com.github.pagehelper.PageInfo;
import com.vy.stl.entity.Reserve;

import java.util.List;

/**
 * @create: 2025/09/02 19:18
 * @description:
 */
public interface ReserveService {

    /**
     * 查询预约列表（条件查询）
     * @param reserve
     * @return
     */
    List<Reserve> search(Reserve reserve);

    /**
     * 分页查询预约列表
     * @param page
     * @param limit
     * @param reserve
     * @return
     */
    PageInfo searchByPage(Integer page, Integer limit, Reserve reserve);

    /**
     * 后台管理员添加预约
     * @param reserve
     * @return
     */
    int add(Reserve reserve) throws Exception;

    /**
     * 修改预约信息
     * @param reserve
     * @return
     */
    int edit(Reserve reserve, boolean isJob) throws Exception;

    int editStatus(Reserve reserve) throws Exception;

    int batchUpdateStatus(List<Reserve> reserveList);
}
